<!--
        *前台会员中心订单管理
        * 
        *
        * @author     yuanxi
        * @version    2018-03-01 23:14    
-->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <title>订单列表-会员中心</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="/public/static/homes/css/iconfont/iconfont.css" rel="stylesheet"/>
    <link href="/public/static/homes/css/common.css" rel="stylesheet"/>
    <link href="/public/static/homes/css/uc.css" rel="stylesheet"/>
</head>
<body>
    <!--头部-->
    {:widget("Cate/header")}
    
    <div class="wrapper uc-router">
        <ul>
            <li><a href="/homeindex/index">首页</a></li>
            <li><span class="divider"></span></li>
            <li><span><a href="/myuser/myuser">会员中心</a></span></li>
            <li><span class="divider"></span></li>
            <li><span><a href="/myorder/index">订单列表</a></span></li>
        </ul>
    </div>

    <div class="wrapper">
        <div class="uc-main clearfix">
            {:widget("Cate/left")}
            <div class="uc-content">
                <div class="uc-panel">
                    <div class="uc-bigtit">我的订单</div>
                    <div class="uc-panel-bd">
                        <div class="uc-sort">
                            <div class="uc-tabs">
                                <a class="item active" href="">所有订单</a>
                                <a class="item" href="/myorder/nopay/user_id/{$uid}">待付款（{$nopay}）</a>
                                <a class="item" href="/myorder/nosend/user_id/{$uid}">待发货（{$nosend}）</a>
                                <a class="item" href="/myorder/unaccept/user_id/{$uid}">待收货（{$unaccept}）</a>
                                 <a class="item" href="/myorder/unevaluat/user_id/{$uid}">待评价（{$unevaluat}）</a>
                            </div>
                            <div class="uc-search">
                            <form action="/myorder/index/user_id/{$uid}" method="get">
                                <input type="text" class="sch-input" placeholder="输入商品名称,订单号，商品编号" name="orderid" value="{$s}"  />
                                <button class="sch-btn" type="sumit"><i class="iconfont icon-search"></i></button>
                            </form>
                            </div>
                        </div>
                        <table class="uc-table">
                            <thead>
                                <td></th>
                                <th></th>
                                <th></th>
                                <th width="120"></th>
                            </thead>
                           
                            {foreach name="data" item="rows"}
                            <tr class="hd order-meta">
                                <td colspan="3" align="center">
                                    <div class="left" style="width:100%;text-align:center;">订单信息</div>
                                </td>
                                <td colspan="3" align="center">
                                    <div class="left" style="width:100%;text-align:center;">状态</div>
                                </td>
                            </tr>
                            <tr class="order-goods">
                                <td style="padding:25px 10px 15px;">
                                    订单号:<span class="text-theme fwb">{$rows.orderid}</span>
                                </td>
                                <td>
                                    金额：<span class="text-theme fwb">{$rows.money}元</span>
                                </td>
                                <td>
                                    <a class="text-info" href="/myorder/detail/oid/{$rows.id}">订单详情</a><br />
                                </td>
                                {if condition="($rows.status eq 0)"}
                                <td>
                                    <a href="/myorder/pay/id/{$rows.id}" class="ui-btn-theme uc-btn-md">去付款</a>
                                </td>
                                <td>
                                    <a href="/myorder/cancel/id/{$rows.id}" class="ui-btn-low uc-btn-md">取消订单</a>
                                </td>
                                 {elseif condition="($rows.status eq 1)"/}
                                 <td>
                                    <a href="javascript:void(0)" class="ui-btn-theme uc-btn-md">已付款</a>
                                </td>
                                <td>
                                    <a href="" class="ui-btn-theme uc-btn-md">催足发货</a>
                                </td>
                                {elseif condition="($rows.status eq 2)"/}
                                <td>
                                    <a href="" class="ui-btn-theme uc-btn-md">已发货</a>
                                </td>
                                <td>    
                                    <a href="" class="ui-btn-theme uc-btn-md">去签收</a>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                {elseif condition="($rows.status eq 3)"/}
                                <td>
                                    <a href="javascript:void(0)" class="ui-btn-theme uc-btn-md">已签收</a>
                                </td>
                                <td>     
                                    <a href="/evaluat/toevaluat/id/{$rows.id}" class="ui-btn-theme uc-btn-md">去评价</a>
                                </td>
                                {elseif condition="($rows.status eq 4)"/}
                                <td>
                                    <a href="javascript:void(0)" class="ui-btn-theme uc-btn-md">已评价</a>
                                </td>
                                <td>
                                    <a href="/evaluat/toevaluat/id/{$rows.id}" class="ui-btn-low uc-btn-md">查看评价</a>
                                </td>
                                {else/}
                                 <td>
                                   <a href="javascript:void(0)" class="ui-btn-low uc-btn-md">订单已取消</a>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                {/if}
                            </tr>

                            {/foreach}
                            
                        </table>
                      

                        <div class="ta-c">
                            {$data->appends($request)->render()}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    {:widget("Cate/footer")}